Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react): update @types/react to v19+ #30085

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ptmkenny
Copy link

@ptmkenny ptmkenny commented Dec 15, 2024

Issue number: resolves #29991


What is the current behavior?

React types are currently being tested against React 17, but React 19 is the current version.

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

I don't think this introduces a breaking change but this needs confirmation because of the type changes.

Also, the dev dependency is react 17, which makes it tricky to test with 19.

Other information

I don't know if this is ready to go yet; I made this PR to run the tests.

@ptmkenny ptmkenny requested a review from a team as a code owner December 15, 2024 00:53
Copy link

vercel bot commented Dec 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 15, 2024 2:35am

@github-actions github-actions bot added the package: react @ionic/react package label Dec 15, 2024
@ptmkenny ptmkenny changed the title Update @types/react to v19+ fix(react): update @types/react to v19+ Dec 15, 2024
@ptmkenny
Copy link
Author

The issue that needs to be fixed:

New function components will no longer need forwardRef, and we will be publishing a codemod to automatically update your components to use the new ref prop. In future versions we will deprecate and remove forwardRef.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: react @ionic/react package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Issues with React 19 types
1 participant